
TRIGGER PROCEDURE FOR CREATE OF SOD_DET.

{mfdeclre.i }

HK:
do:
    if not can-find ( first dt_mstr where dt_table = "sod_det" and dt_type = "ADD" ) then leave HK.
 
    for first dt_mstr no-lock where dt_table = "sod_det" and dt_type = "ADD" :
    
        run CreateDthist(input dt_table, input dt_field, input dt_type, input "", input "", 
            input recid(sod_det), input sod_det.sod_nbr, input sod_det.sod_line, input "", input "",
            input "", input "", input "", input "") .

    end.
end.

{hkdttrans.i}
